import Mock from './mock.angular';

Mock.mock('/api/v1/codeDict/staffCodeRule/get', 'get', {
  success: true,
  message: '',
  code: 200,
  data: {
    'A|1-3': [
      {
        'code|1': [1, 2, 3],
        name: '@name',
      },
    ],
    'B|10-15': [
      {
        'code|1': [1, 2, 3],
        name: '@name',
      },
    ],
    'C|10-15': [
      {
        'code|1': [1, 2, 3],
        name: '@name',
      },
    ],
    'D|10-15': [
      {
        'code|1': [1, 2, 3],
        name: '@name',
      },
    ],
  },
});
Mock.mock('/api/v1/codeDict/deviceCodeRule/get', 'get', {
  success: true,
  message: '',
  code: 200,
  data: {
    id: '@id',
    orgId: '@id',
    fullName: '@cname',
    idNo: '@id',
    rfidNo: '@id',
    collectTime: '@date',
    idCardBean: {
      id: '@id',
      name: '@cname',
      'sex|1': [1, 2],
      'nation|1': ['汉族', '傣族'],
      birthday: '@date',
      address: '@province@city@zip',
      issueUnit: '@province@city()公安局',
      validPeriod: '1986-2016',
      photoId: '@id',
    },
    fingerPrintList: [
      {
        id: '@id',
        idNo: '@id',
        type: '@id',
        imageId: '@id',
      },
    ],
  },
});
